package cn.tedu.shopol.taojin.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author tedu.cn
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_order")
public class UserOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户订单表主键
     */
    @TableId(value = "user_order", type = IdType.AUTO)
    private Integer userOrder;

    /**
     * 用户表连接
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户住址连接
     */
    @TableField("user_address_id")
    private Integer userAddressId;

    /**
     * 购物车表单赋值
     */
    @TableField("order_two_id")
    private Integer orderTwoId;

    @TableField("shipping_id")
    private Integer shippingId;

    /**
     * 商品价格
     */
    @TableField("payment")
    private Double payment;

    /**
     * 商品类型
     */
    @TableField("payment_type")
    private Integer paymentType;

    /**
     * 邮费
     */
    @TableField("postage")
    private Integer postage;

    /**
     * 状态码
     */
    @TableField("status")
    private Integer status;

    /**
     * 付款时间
     */
    @TableField("payment_time")
    private LocalDateTime paymentTime;

    /**
     * 发货时间
     */
    @TableField("send_time")
    private LocalDateTime sendTime;

    /**
     * 收货时间
     */
    @TableField("end_time")
    private LocalDateTime endTime;

    /**
     * 订单完全结束时间
     */
    @TableField("close_time")
    private LocalDateTime closeTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


}
